<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<%@include file="/common/taglibs.jsp" %>
<%@include file="/common/javascript.jsp" %>
<!DOCTYPE HTML>
<html>
  <head>
  	<style type="text/css">	
		/*提交表单*/
		.l-table-edit {font-size:12px; color:#555; padding:5px 5px 5px 0px;}
		.l-table-edit-td{ padding:5px; padding-left:0;}
		.Validform_checktip{margin:4px 0;font-weight: lighter;}
	</style>
    <script type="text/javascript">
    
   	 	$(function() { 
        	$("#oldpwd").val("");
            $("#newpwd").val("");
            $("#cpwd").val("");
    	});
    		
    	function saveInfo(){
    		if(mainform.check()){
				$("#mainform").form('submit',{
					success: function(data){  
						var data = eval('(' + data + ')'); 
						if (!data.success){ //保存失败  
							window.parent.window.$.messager.alert('提示',"错误:"+data.message,"info");
        				}else{//保存成功
        					window.parent.window.$.messager.alert('提示',data.message,"info",function(){
        						//调用父窗体的方法，关闭弹出框
        						window.parent.closeContent();
        					});
        				} 
					}
				});
			}
    	}
    </script>
  </head>
  
  <body style="margin:0px; overflow-style:clear; padding:0px; overflow: hidden;">
    <form name="mainform" method="post"  id="mainform" action="manageAction_updatepwd">
    	<table cellpadding="0" cellspacing="0" class="l-table-edit" style="width: 95%; margin-top:0px; margin-left:15px; column-gap:5px">
    		<tr>
            	<td align="right" class="l-table-edit-td"><label class="red">*</label> 旧密码:</td>
                <td align="left" class="l-table-edit-td">
                	<input name="oldpwd" type="text" id="oldpwd" value="" datatype="*6-16" errormsg="密码范围在6-16位之间！" nullmsg="请输入原密码"/>
                	<div class="Validform_checktip">请输入原密码</div>
                </td>
            </tr>
            <tr>
            	<td align="right" class="l-table-edit-td"><label class="red">*</label> 新密码:</td>
                <td align="left" class="l-table-edit-td">
                	<input name="newpwd" type="password" id="newpwd" value="" datatype="*6-16" errormsg="密码范围在6-16位之间！" nullmsg="请输入密码" />
                	<div class="Validform_checktip">密码范围在6-16位之间</div>
                </td>
            </tr>
            <tr>
            	<td align="right" class="l-table-edit-td"><label class="red">*</label> 确认密码:</td>
                <td align="left" class="l-table-edit-td">
                	<input name="confirmpwd" type="password" id="confirmpwd" value=""  datatype="*" recheck="newpwd" nullmsg="请输入密码"  errormsg="您两次输入的账号密码不一致！"  />
                	<div class="Validform_checktip">密码范围在6-16位之间</div>
                </td>
            </tr>
    	</table>
    </form>
    <span id="msgdemo" style="margin-left:30px;"></span>
  </body>
</html>
